﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CarolLib.Configuration;
using System.Xml;


namespace CarolLib.WinService
{
    public class WinServiceConfiguration : ConfigurationBase
    {
        public WinServiceSetting Settings { get; private set; }

        public static WinServiceConfiguration GetConfig()
        {
            return GetConfig<WinServiceConfiguration>("serviceSetting");
        }

        protected override void LoadValuesFromConfigurationXml(System.Xml.XmlNode node)
        {
            Settings = new WinServiceSetting(node);
        }
    }
}
